<%= render :partial => "shared/admin_links" %>
<%= will_paginate_locale @shops %>
<%= link_to "#{t("site.cms.action.new")} #{t("site.cms.entity.shop")}", new_shop_path, :class=> "addShops" %>
<div class="homeButton"><%= link_to (image_tag("/images/buttons/homeButton.jpg", :alt => "24_menu", :class => "homeImage")),  root_path, :class => "homeLink" %></div>
<table class="adminTableShops" border="0" width="100%" cellpadding="4" cellspacing="0">
  <tr class="adminTableHeader"><th><%= t("site.cms.label.id") %></th><th><%= t("site.cms.label.shop") %></th><th><%= t("site.cms.label.town") %></th>
    <th><%= t("site.cms.action.edit") %></th><th><%= t("site.cms.action.delete") %></th></tr>
  <% @shops.each do |shop| %>
  <tr>
    <td><%= shop.id %></td>
    <td><%= shop.name %></td>
    <td><%= shop.town.name %></td>
    <td><%= link_to "#{t("site.cms.action.edit")} #{t("site.cms.entity.shop")} #{shop.id}", edit_shop_path(:id => shop.id) %></td>
    <td><%= link_to "#{t("site.cms.action.delete")} #{t("site.cms.entity.shop")} #{shop.id}", shop_path(:id => shop.id),
  :method => :delete, :confirm => t("site.cms.label.sure") %></td>
  </tr>
  <% end %>
</table>
<%= will_paginate_locale @shops %>
